﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MySet.aspx.cs" Inherits="Admin_MySet" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title></title>

    
        <style type="text/css">
	<!--
	    body,td,th {
	        font-size: 14px;
        }
	    strong {
	        PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px
		    }
	    h2 {
	        FONT-SIZE: 14px
        }
		#column {
		WIDTH: 680px;  margin:auto;
		}
		.module_wrap {
	        BORDER-BOTTOM: #bfe6f4 1px solid; BORDER-LEFT: #bfe6f4 1px solid; BORDER-TOP: #bfe6f4 1px solid; BORDER-RIGHT: #bfe6f4 1px solid
		}
		.module_wrap .wrap {
			BACKGROUND: #fff
		}
		.module_wrap H2 {
			POSITION: relative; LINE-HEIGHT: 30px; PADDING-LEFT: 10px; BACKGROUND: url(images/module_wrap_h2_bg.gif) repeat-x; HEIGHT: 31px; COLOR: #333; margin-top:0px;
		}
		
		.wrap_space {
	PADDING-BOTTOM: 10px; PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 10px
}
-->
</style>
</head>
<body>
    <form id="form1" runat="server">
    <div id="column" align="center">
    <div class="module_wrap">
        <h2><strong>修改密码</strong> </h2>
       <div class="wrap wrap_space">
  
  

          <table border="0" style="width: 272px">
            <tr>
              <td class="width:100px;" >原密码：</td>
              <td> <asp:TextBox ID="oldPw" runat="server" TextMode="Password"></asp:TextBox>  </td>
                </tr>
                <tr>
                    <td>新密码：</td>
                    <td>
                        <asp:TextBox ID="newPw" runat="server" TextMode="Password"></asp:TextBox> </td>
                </tr>
                <tr>
                    <td>确认密码：</td>
                    <td><asp:TextBox ID="newPw_c" runat="server" TextMode="Password"></asp:TextBox>  </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:Button ID="Button1" runat="server" Text="提交" OnClick="Button1_Click" OnClientClick="return BeforCommit();" /></td>
                </tr>
                </table>
        
    
    </div>
    </div>
    </div>
    </form>
</body>
</html>
<script language="javascript">
function BeforCommit()
{
    var old=document.getElementById("oldPw").value;
    if(old == "")
    {
        alert("请输入原始密码！");
        return false;
    }
    var new1=document.getElementById("newPw").value;
    var new2=document.getElementById("newPw_c").value;
    if(new1=="" || new2=="")
    {
        alert("新密码不能为空");
        return false;
    }
    if(new1!=new2)
    {
        alert("两次输入的密码不一致");
        return false;
    }
    return true;
    
}
</script>